{extend name="layout/iframe" /}

{block name="content"}
<div class="x-body layui-anim layui-anim-up">
    <form class="layui-form">
        <div class="layui-form-item">
            <label for="title" class="layui-form-label">
                <span class="x-red">*</span>标题
            </label>
            <div class="layui-input-inline">
                <input type="text" id="title" name="title" lay-verify="title" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red">*</span>发布对象
            </label>
            <div class="layui-input-inline">
                <select name="storeId" id="store" class="" lay-filter="store">
                    <option value="">请选择店铺</option>
                </select>
                <input type="hidden" class="storeId" value="">
            </div>
            <div class="layui-input-inline">
                <input type="checkbox" name="type" required="" lay-skin="primary" title="全部店铺" value="0">
                <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                    <span>全部店铺</span><i class="layui-icon"></i>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                内容
            </label>
            <div class="layui-input-block">
                <textarea id="content" name="content" style="display: none;"></textarea>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <button class="layui-btn" lay-filter="add" lay-submit="">增加</button>
        </div>
    </form>
</div>

<script>
    var storelist_url = "{:url('admin/storemessage/getStore')}";
    var save_url = "{:url('admin/storemessage/savepost')}";
</script>
<script src="__STATIC__/admin/pages/js/storemessage.js" type="text/javascript"></script>
{/block}